package kr.hkit.powerjava.chapter09.work;

import java.util.Random;

/*public class Point {
	private int x,y;
	
	public void print(int x, int y){
		this.x = x;
		this.y = y;
	}
}*/
class MyMath{
	private Random rnd;
	public int getRandom(){
		rnd = new Random();
		return rnd.nextInt();
	}
	
	
@Override
	public String toString() {
		return "MyMath [getRandom()=" + getRandom() + "]";
	}


	/*	public double getRandom(){
		return (double)Math.random();
	}*/
}
public class MyMathTest{
	public static void main(String[] args) {
		MyMath math = new MyMath();
		System.out.println(math);
		
	}
}